#!/usr/bin/env python2
# ---------------------------------------------------------------------------
# Just a utility to see what msgids there are...

import os
import site_config as cfg
import qrpbbb_lib as lib

print "Messages in newsspool..."

for f in sorted (lib.newsspool_filelist()):
    all = lib.fetch_messagetext (f)
    msgid = lib.message_hash (all)
    print msgid, f

print "Messages in queuein..."

for f in lib.queuein_filelist():
    all = lib.fetch_messagetext (f)
    name = os.path.basename (f)
    msgid = lib.message_hash (all)
    print name, msgid, f

#
# ---------------------------------------------------------------------------
#
